package com.yf.stack.operandstack;

public class OperandStackTest {
    public void testAddOperation() {
        // byte,char,short,boolean都以int型来保存
        byte i = 15;
        int j = 8;
        int k = i + j;

        int m = 8000;
    }

    public int sum() {
        int a = 10;
        int b = 20;
        int c = a + b;

        return c;
    }

    public void testSum() {
        // 获取上一个栈顶返回的结果，并保存在操作数栈中
        int r = sum();
        int i = 10;
    }


}
 